<div class="bg-light lter b-b wrapper-md">
    <h4 class="m-n font-thin">商家入驻信息</h4>
</div>
<div class="wrapper-md ng-scope" ng-controller="shopLocatedCtrl" ng-init="init()">
    <div class="panel">
        <div class="row wrapper">
            <div class="col-sm-12">
                <form class="form-inline">
                    <div class="form-group">
                        <label class="control-label">用户名称</label>
                        <input type="text" class="input-sm form-control" ng-model="shopLocatedBO.userName">
                    </div>
                    <div class="form-group">
                        <label class="control-label">店铺名称</label>
                        <input type="text" class="input-sm form-control" ng-model="shopLocatedBO.shopName">
                    </div>
                    <button class="btn btn-sm btn-info" ng-click="findAll()">查询</button>
                </form>
            </div>

            <div class="clearfix"></div>
            <div class="bg-light panel-body">
                <div class="m-b-xs">
                    <p class="m-n h4 font-bold">注意！</p >
                </div>
                <div>
                    <span class="h6 block m-b-sm">1. 支付完成的用户需(最多)等待60秒系统才能确认完毕，届时支付状态将提示“确认支付中”。</span>
                    <span class="h6 block m-b-sm">2. 每隔30秒将刷新一次，以便实时更新。</span>
                    <span class="h6 block m-b-sm">3. V2.0.7版本之前的交易记录没有第三方交易编号且交易时间会存在偏差(只能精确到小时)。</span>
                </div>
            </div>
        </div>
       
        <div class="table-responsive">
            <table class="table table-striped b-t b-light">
                <thead>
                    <tr>
                        <th>订单号</th>
                        <th>第三方交易编号</th>
                        <th>用户名称</th>
                        <th>联系电话</th>
                        <th>推荐用户</th>
                        <th>店铺名称</th>
                        <th>套餐名称</th>
                        <th>支付金额</th>
                        <th>支付方式</th>
                        <th>支付状态</th>
                        <th>开店状态</th>
                        <th>支付时间</th>
                        <!-- <th> 操作</th> -->
                    </tr>
                </thead>
                <tbody>
                    <tr ng-repeat="item in list">
                        <td>{{item.number}}</td>
                        <td>
                            <span ng-if="item.transactionNumber == null">
                                   无
                            </span>
                            <span ng-if="item.transactionNumber != null">
                                {{item.transactionNumber}}
                            </span>
                        </td>
                        <td>{{item.userName}}</td>
                        <td>
                            <span ng-if="item.mobilePhone == null" >无</span>
                            <span ng-if="item.mobilePhone != null" >{{item.mobilePhone}}</span>
                        </td>
                        <td> 
                            <span ng-if="item.recommendUserName == null" >无</span>
                            <span ng-if="item.recommendUserName != null" >{{item.recommendUserName}}</span>
                        </td> 
                        <td> {{item.shopName}}</td>
                        <td> {{item.setMealName}}</td>
                        <td> {{item.payMoney}}</td>
                        <td>
                            <span class="badge bg-success ng-scope" ng-if="item.payWay == 0">微信</span>
                        </td>
                        <td>
                            <span class="badge bg-success" ng-if="item.isPay = 1">
                                <span ng-if="item.prescription <= 60">确认支付中</span>
                                <span ng-if="item.prescription > 60">已支付</span>
                            </span>
                            <span class="badge bg-danger" ng-if="item.isPay = 0">
                                   未支付
                            </span>
                        </td>
                        <td> 
                            <span class="badge bg-dark" ng-if="item.registStatus == 0">已选择套餐</span>
                            <span class="badge bg-warning" ng-if="item.registStatus == 1">已注册基本信息</span>
                            <span class="badge bg-info" ng-if="item.registStatus == 2">已填写店铺信息</span>
                            <span class="badge bg-primary" ng-if="item.registStatus == 3">提交完整信息</span>
                            <span class="badge bg-success" ng-if="item.registStatus == 4">审核通过</span>
                            <span class="badge bg-danger" ng-if="item.registStatus == 5">审核不通过</span>
                        </td>
                        <td>
                            <span ng-if="item.payTime == null">
                                {{item.createdTime}}
                            </span>
                            <span ng-if="item.payTime != null">
                                {{item.payTime}}
                            </span>
                        </td>
                        <!-- <td>
                            <button class="btn btn-sm btn-success" ui-sref="app.shopLocatedView({id:item.shopLocatedID})"  href="#/shopLocated/view/298b5cebbc2e4408922e92539d1a902e">查看</button>
                            <button class="btn btn-sm btn-info" ui-sref="app.shopLocatedEdit({id:item.shopLocatedID})" href="#/shopLocated/edit/298b5cebbc2e4408922e92539d1a902e">修改</button>
                        </td> -->
                    </tr>
                </tbody>
            </table>
            <div ng-if="list.length<=0 && !app.loading" class="padder-v text-center">
                <span class="h6">~未搜索到任何数据~</span>
            </div>
            <div>
                <circle-loading ng-if="app.loading"></circle-loading>
            </div>
        </div>
        <footer class="panel-footer">
            <div class="row">
                <div class="col-sm-offset-4 col-sm-4 text-center">
                    <small class="text-muted inline m-t-sm m-b-sm">显示第 {{startRow}} 至 {{endRow}} 项结果，共 {{totalItems}} 项</small>
                </div>
                <div class="col-sm-4 text-right text-center-xs">
                    <pagination boundary-links="true" total-items="totalItems" ng-model="currentPage"
                                ng-change="pageChanged()" max-size="{{maxPageRow}}" class="pagination-sm m-t-none m-b"
                                previous-text="上一页" next-text="下一页"
                                first-text="首页" last-text="尾页"></pagination>
                </div>
            </div>
        </footer>
    </div>
</div>


